﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BJYJ_Admin.Core.SystemEntities
{
    //[AttributeUsage(AttributeTargets.Property)]
    //public class DatabaseCommentAttribute : Attribute
    //{
    //    public string Comment { get; }
    //    public DatabaseCommentAttribute(string comment) => Comment = comment;
    //}
    public class System_Users : Entity<int>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [MaxLength(50)]
        public string UserName { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [MaxLength(50)]
        public string TrueName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [MaxLength(50)]
        public string PassWd { get; set; }

        /// <summary>
        /// 区域编号
        /// </summary>
        [MaxLength(50)]
        public string AreaNumber { get; set; }

        /// <summary>
        /// 电子邮件
        /// </summary>
        [MaxLength(20)]
        public string Email { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        [MaxLength(20)]
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        [MaxLength(2)]
        public string UserType { get; set; }

        /// <summary>
        /// 启用日期
        /// </summary>
        [MaxLength(20)]
        public string EnabledDate { get; set; }


        /// <summary>
        /// 图片URL
        /// </summary>
        [MaxLength(50)]
        public string ImgUrl { get; set; }

        /// <summary>
        /// 是否启用0启用1禁用
        /// </summary>
        [MaxLength(2)]
        public string IsEnabled { get; set; }

        /// <summary>
        /// 机构级别
        /// </summary>
        [MaxLength(2)]
        public string Jgjb { get; set; }

        /// <summary>
        /// 最后一次登录日期
        /// </summary>
        [MaxLength(50)]
        public string LastLoginDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(200)]
        public string Remark { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        [MaxLength(50)]
        public string Caozr { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
     
        public System_Users()
        {            
            CreatedTime = DateTime.Now;
            UpdatedTime = DateTime.Now;
        }

       
    }
   
}
